package com.mm.dao;

import com.mm.model.Order;

@Mapper
public interface OrderMapper {
	/**
	 * 保存订单
	 *
	 * @param order Order
	 */
	void insertOrder(Order order);

	/**
	 * 更新订单
	 *
	 * @param order Order
	 */
	void updateOrderById(Order order);

	/**
	 * 获取订单
	 *
	 * @param orderId 订单ID
	 * @return Order
	 */
	Order getOneOrderById(Long orderId);

	/**
	 * 通过订单ID删除订单
	 *
	 * @param orderId 订单ID
	 */
	void deleteOrderById(Long orderId);
}